package com.ruoyi.project.biz.dao;

import com.ruoyi.project.biz.entity.FlowRecordDO;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FlowRecordDao extends JpaRepository<FlowRecordDO, Long> {
    FlowRecordDO findByInstIdAndEndTimeIsNull(Long instId);

    FlowRecordDO findByInstIdAndFlowSeq(Long instId, int flowSeq);

    List<FlowRecordDO> findAllByInstIdOrderByFlowSeqDesc(Long instId);
}
